class Solution(object):
    def capitalizeTitle(self, title):
        t = title.split(' ')
        out = []
        for c in t:
            c = c.lower()
            if len(c) <= 2:
                out.append(c)
            else:
                out.append(c[0].upper() + c[1:])
        return ' '.join(out)
